package com.yuneec.fly.events.uiEvent;

/**
 * Created by zd.zhang on 2016/6/15.
 */
public class FragmentEvent {
    public static final int Hide_All = 0;
    public static final int Show_Fragment_RouteDetail = 1;
    public static final int Show_Fragment_PointDetail = 2;
    public static final int Hide_Fragment_RouteDetail = -1;
    public static final int Hide_Fragment_PointDetail = -2;
    public int code;

    public FragmentEvent(int code) {
        this.code = code;
    }

    private int mEvent = 0;
    private String mFragmentName = "";
    private float floatValue = 0;
    public static final int EVENT_DEF = 0;
    public static final int EVENT_REMOVE_FRAGMENT = 1;
    public static final int EVENT_ADD_FRAGMENT = 2;
    public static final int EVENT_ADD_SHOW_REMOVE_UPDATE_FRAGMENT = 3;
    public static final int EVENT_UPDATE = 4;


    public FragmentEvent(String fragmentName, int event) {
        this.mFragmentName = fragmentName;
        this.mEvent = event;
    }

    public FragmentEvent(String fragmentName, int event, float value) {
        this(fragmentName, event);
        this.floatValue = value;
    }

    public int getmEvent() {
        return mEvent;
    }

    public String getmFragmentName() {
        return mFragmentName;
    }

    public float getFloatValue() {
        return floatValue;
    }
}
